{% extends 'base.html' %}

{% block title %}
    注册
{% endblock %}

{% block header %}
    <script src="{% static 'jquery/jquery-3.7.1.min.js' %}"></script>
    <script src="{% static 'js/register.js' %}"></script>
{% endblock %}

{% block main %}
    <div style="display: flex;justify-content: center;align-items: center;" class="my-5">
        <main class="bg-white p-3 rounded" style="width:400px;height: 600px;">
            <h2 class="text-center">注册</h2>
            <form action="" method="post">
                {% csrf_token %}
                <div class="mb-3">
                    <label for="exampleInputEmail1" class="form-label">用户名</label>
                    <input type="text" class="form-control" aria-describedby="emailHelp"
                           name="username">
                </div>
                <div class="mb-3">
                    <label for="exampleInputEmail1" class="form-label">邮箱</label>
                    <input type="email" class="form-control"  aria-describedby="emailHelp"
                           name="email">
                </div>
                <div class="mb-3">
                    <label for="exampleInputEmail1" class="form-label">验证码</label>
                    <div class="input-group mb-3">
                        <input type="text" class="form-control" aria-describedby="button-addon2" name = "captcha">
                        <button id="captcha-btn" class="btn btn-outline-secondary" type="button" >发送验证码</button>
                    </div>
                </div>
                <div class="mb-3">
                    <label for="exampleInputPassword1" class="form-label">密码</label>
                    <input type="password" class="form-control"  name="password">
                </div>
                <button type="submit" class="btn btn-primary w-100">立即注册</button>
            </form>
        </main>
    </div>
{% endblock %}
